﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IntelligentCMS
{
    public partial class contenttype : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            
                CMSContentTypeConfig newConfig = (CMSContentTypeConfig)(LoadControl("CMSContentTypeConfig.ascx"));


               
                if (Request.QueryString["ID"] != null)
                {
                    if (Request.QueryString["ID"].Trim() != string.Empty)
                    {
                        newConfig.ContentTypeID = long.Parse(Request.QueryString["ID"]);
                        newConfig.Execute();

                    }

                }
                 

                thePanel.Controls.Add(newConfig);
                //theControls.Add(newConfig);
           

            //test newTest = (test)(LoadControl("test.ascx"));

            //thePanel.Controls.Add(newTest);

        }

        //private List<Control> theControls = new List<Control>();

        protected void Button_Done_Click(object sender, EventArgs e)
        {
            Response.Redirect("managecontenttypes.aspx");
        }

        protected void ManageFields_Click(object sender, EventArgs e)
        {
            Response.Redirect("managefields.aspx");
        }


       

    }
}
